package tests;

import static org.junit.Assert.assertTrue;
import models.User;

import org.junit.Before;
import org.junit.Test;

public class TestUser {

	User testUser = null;
	
	@Before
	public void createNewTestUser() {
		testUser = new User();
		testUser.setFullName("testUser");
		testUser.setEmailAddress("user@gmail.com");
		testUser.setOpenId("UsEr");
		testUser.setStylesheet("mint");
	}
	
	@Test
	public void testGetOpenId() {
		assertTrue(testUser.getOpenId().equals("UsEr"));
	}
	
	@Test
	public void testGetFullName(){
		assertTrue(testUser.getFullName().equals("testUser"));
	}

	@Test
	public void GetEmailAddress(){
		assertTrue(testUser.getEmailAddress().equals("user@gmail.com"));
	}
	
	@Test
	public void GetStylesheet(){
		assertTrue(testUser.getStylesheet().equals("mint"));
	}
	
}
